package com.itheima.test1110work;

public class TV extends Elect {
    private double screenSize; // 屏幕尺寸
    private String resolution; // 分辨率

    // 构造方法
    public TV(String name, String size, String color, double price, double screenSize, String resolution) {
        super(name, size, color, price);
        this.screenSize = screenSize;
        this.resolution = resolution;
    }

    // 获取屏幕尺寸
    public double getScreenSize() {
        return screenSize;
    }

    // 设置屏幕尺寸
    public void setScreenSize(double screenSize) {
        this.screenSize = screenSize;
    }

    // 获取分辨率
    public String getResolution() {
        return resolution;
    }

    // 设置分辨率
    public void setResolution(String resolution) {
        this.resolution = resolution;
    }
}
